package com.ytjj.bigdata.controller;

import com.ytjj.bigdata.model.dto.AdsAppChannelDto;
import com.ytjj.bigdata.service.AdsAppChannelService;
import com.ytjj.common.api.CommonResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("/adsAppChannel")
public class AdsAppChannelController {

    @Resource
    private AdsAppChannelService adsAppChannelService;

    @PostMapping("/channelList")
    public CommonResult channelList(@RequestBody AdsAppChannelDto adsAppChannelDto) {
        return CommonResult.success(adsAppChannelService.selectAdsAppChannel(adsAppChannelDto));
    }
}
